﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using System.IO;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        autocheck();
    }
    private void autocheck()
    {
        XmlDocument doc = new XmlDocument();
        TextArea1.Value = "";
        int a = Directory.GetFiles(@"E:\www\binhduongworks.com\pages\data", "*.xml").Length;
        for (int i = 0; i < a; ++i)
        {
            doc.Load(Server.MapPath("~/pages/data/xml" + i + ".xml"));
            XmlNode root = doc.DocumentElement;
            TextArea1.Value += root.SelectSingleNode("chat").ChildNodes[0].Value + "\n";
        }
    }

}